package com.pkk;

import static com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel.AUTH;
import static com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel.BLACKLIST;
import static com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel.LIMIT;
import static com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel.WHITELIST;

import com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel;
import com.pkk.spring.cloud.service.gateway.annotation.RouteDefinitionRepositoryAdviceModel;
import com.pkk.spring.cloud.starter.gateway.annotation.EnableDynamicRoute;
import com.pkk.spring.cloud.starter.gateway.annotation.EnableGatewayExt;
import com.pkk.spring.cloud.starter.rpc.annotation.EnableGlobalResponse;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 网关启动器
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-14 11:45
 **/
@EnableGatewayExt(ext = {GatewayExtAdviceModel.CORS, AUTH, BLACKLIST, WHITELIST, LIMIT})
@EnableGlobalResponse
@SpringBootApplication
@EnableDynamicRoute(mode = RouteDefinitionRepositoryAdviceModel.REDIS)
public class SpringCloudGatewayRunner {

  public static void main(String[] args) {

    SpringApplication.run(SpringCloudGatewayRunner.class, args);
  }


}
